package com.ruoyi.back.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 课程订购对象 course_ordering
 * 
 * @author luguanqing
 * @date 2021-04-07
 */
@ApiModel("课程订购实体")
public class CourseOrdering extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键id */
    @ApiModelProperty(value = "主键id")
    private String id;

    /** 课程id */
    @ApiModelProperty(value = "课程id")
    @Excel(name = "课程id")
    private String culumId;

    /** 人员id */
    @ApiModelProperty(value = "人员id")
    @Excel(name = "人员id")
    private String userId;

    /** 状态 */
    @ApiModelProperty(value = "状态")
    @Excel(name = "状态")
    private String state;

    /** 订购时间 */
    @ApiModelProperty(value = "订购时间")
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "订购时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date ordertime;

    public void setId(String id) 
    {
        this.id = id;
    }

    public String getId() 
    {
        return id;
    }
    public void setCulumId(String culumId) 
    {
        this.culumId = culumId;
    }

    public String getCulumId() 
    {
        return culumId;
    }
    public void setUserId(String userId) 
    {
        this.userId = userId;
    }

    public String getUserId() 
    {
        return userId;
    }
    public void setState(String state) 
    {
        this.state = state;
    }

    public String getState() 
    {
        return state;
    }
    public void setOrdertime(Date ordertime) 
    {
        this.ordertime = ordertime;
    }

    public Date getOrdertime() 
    {
        return ordertime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("culumId", getCulumId())
            .append("userId", getUserId())
            .append("state", getState())
            .append("ordertime", getOrdertime())
            .toString();
    }
}
